#import <Cocoa/Cocoa.h>
#import "ManagingViewController.h"

@class RNSourceList;
@class RNSourceListHeader;
@class MainWindowController;

@interface SourceListViewController : ManagingViewController <NSOutlineViewDataSource, NSOutlineViewDelegate> {
    RNSourceList *sourceList_;
    NSMutableArray *sourceListHeaders_;
    RNSourceListHeader *storesHeader_;
    NSTreeController *sourceListTreeController_;
    NSArrayController *listsController_;
    NSArrayController *storesController_;
    NSArray *sortDescriptors_;
    BOOL sourceListTreeControllerBindingsEstablished_;
    BOOL displayingStores_;
    BOOL ignoreSelectionChange_;
}

@property (nonatomic, assign) IBOutlet RNSourceList *sourceList;
@property (nonatomic, assign) IBOutlet NSTreeController *sourceListTreeController;
@property (nonatomic, assign) IBOutlet NSArrayController *listsController;
@property (nonatomic, assign) IBOutlet NSArrayController *storesController;
@property (nonatomic, retain) NSMutableArray *sourceListHeaders;
@property (nonatomic, retain) RNSourceListHeader *storesHeader;
@property (nonatomic, retain) NSArray *sortDescriptors;
@property (nonatomic, assign) BOOL sourceListTreeControllerBindingsEstablished;
@property (nonatomic, assign) BOOL displayingStores;
@property (nonatomic, assign) BOOL ignoreSelectionChange;

-(void)deleteSelectedItem;
-(IBAction)selectLists:(id)sender;
-(IBAction)selectStores:(id)sender;
-(IBAction)selectCatalog:(id)sender;
-(IBAction)selectFavorites:(id)sender;
-(IBAction)selectHistory:(id)sender;

@end
